#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Created on 2012/06/17

@author: António Baião
'''
import matplotlib.pyplot as plt


def makeGraphic(datas, times):

    plt.xlabel("Elemntos Inseridos na Arvore")
    plt.ylabel("Contrucao da Arvore k-d")
    plt.title("Performance tempo/dados de criacao da arvore k-d")


    graphic = plt.plot(datas, times, 'r-')
    plt.grid(True)
    plt.savefig('graphic.png')
    plt.show()